import request from '@/utils/request'

//fb发放使用信息
export function fbInfo(params) {
    return request({
        url: `/platform/asset/v1/fb/info`,
        method: 'get',
        params
    })
}
//蜂蜜分发放使用信息
export function integralInfo(params) {
    return request({
        url: `/platform/asset/v1/integral/info`,
        method: 'get',
        params
    })
}
//查询FB配置信息
export function platformFB(params) {
    return request({
        url: `/system/config/v1/platformFB`,
        method: 'get',
        params
    })
}
//设置FB分红规则
export function platformFBDividend(params) {
    return request({
        url: `/system/config/v1/platformFBDividend`,
        method: 'put',
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
        params
    })
}
//设置FB与蜂蜜分兑换比例
export function platformFBExchange(params) {
    return request({
        url: `/system/config/v1/platformFBExchange`,
        method: 'put',
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
        params
    })
}
//查询用户平台资产（FB，蜂蜜分）信息分页
export function walletInfo(params) {
    return request({
        url: `/platform/asset/v1/customer/wallet/info`,
        method: 'get',
        params
    })
}